package org.yookiee.support.config.banner;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.Banner;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;

import java.io.PrintStream;

/**
 * company -
 * FileName EasyI18nBanner
 * Package org.yookiee.support.banner
 * Description
 * author cpstory_a
 * create 2023-11-30 15:09
 * version V1.0
 */
@Slf4j
@Component
public class EasyI18nBanner implements Banner {
    @Override
    public void printBanner(Environment environment, Class<?> sourceClass, PrintStream out) {
        log.info("                                                              \n" +
                "                                     ,--. ,--. ,---.          \n" +
                " ,---.  ,--,--. ,---.,--. ,--.,-----.`--'/   ||  o  |,--,--,  \n" +
                "| .-. :' ,-.  |(  .-' \\  '  / '-----',--.`|  |.'   '.|      \\ \n" +
                "\\   --.\\ '-'  |.-'  `) \\   '         |  | |  ||  o  ||  ||  | \n" +
                " `----' `--`--'`----'.-'  /          `--' `--' `---' `--''--' \n" +
                "                     `---'                                    \n" +
                "${application.title} ${application.version}\n" +
                "Powered by Spring Boot ${spring-boot.version}");
    }
}
